package com.ruixi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruixi.entity.User;
import com.ruixi.utils.PageBean;

import java.util.List;

/**
 * @author lrzg
 * @date 2021-10-18 11:27
 * @Description TODO
 */
public interface IUserService extends IService<User> {
    public List<User> findAllUser();

    User getById(Long id);

    User getUserByName(String name);

    List<User> getUserListByName(String name);

    PageBean<User> getUserListPage(PageBean pageBean);

    int addUser(User user);

    User updateUserByName(User user);

    User updateUserById(User user);

    int updateUser(User user);

    int saveUser(User user);

    int deleteUserById(Long id);
}
